<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>What If</title>
		<link href="CSS/style2.css" rel="stylesheet" type="text/css" />
        <script language="JavaScript" type="text/javascript">
			function shrani(){
				var alt1 = document.getElementById("alt1").value;
				var alt2 = document.getElementById("alt2").value;
				window.opener.alternative(alt1,alt2);
				window.close();
			}
			function zapri(){
				window.close();
			}
		</script>
    </head>
    
    <body>
        <div class="main" align="center">
			<table width="350" cellpadding="5">
                <tr>
                    <th colspan="2">Vnesite alternativi:</th>
                </tr>
                <tr>
                    <td align="right"><b>Prva alternativa:</b></td>
                  <td><input type="text" id="alt1" /></td>
                </tr>
                <tr>
                    <td align="right"><b>Druga alternativa:</b></td>
                  <td><input type="text" id="alt2" /></td>
                </tr>
                <tr>
                    <td align="center"><input type="submit" name="preklici" value="Prekliči" onClick="zapri()" /></td>
                    <td align="center"><input type="submit" name="potrdiAlt" value="Potrdi" onClick="shrani()" /></td>
                </tr>
            </table>
        </div>
    </body>
</html>
